package main.chapter3.innerclass;

public class InnerClassJava {
    private int a = 1;

    public class innerClass {
        public void hello() {
            //非静态内部类持有外部类的状态，这边可以访问到a
            System.out.println(a);
        }
    }

    public static class staticInnerClass {
        public void hello() {
            //这边不能访问到a
//            System.out.println(a);
        }
    }
}
